﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Microsoft.Windows.Controls.Ribbon;
using System.Globalization;

namespace LoghogInterface
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    /// 



    public partial class MainWindow : RibbonWindow
    {
        public ColumnsIndex Ind = new ColumnsIndex();
        public class MyClass //Создание класса-записи
        {
            public string ID { get; set; }
            public string Name { get; set; }
            public string Text { get; set; }
            public string Date { get; set; }
            public string Tage { get; set; }
        }

        public MainWindow()
        {
            InitializeComponent();
            Ind.SetDefault();
            List<MyClass> dc = new List<MyClass>();
            dc.Add(new MyClass
            {
                ID = "1",
                Name = "Цех №5",
                Text = "Пыщ-пыщ ололо! Галактико опастносте!!!",
                Date = "10.02.2012 13.33",
                Tage = "Важно"
            });
            dataGrid1.ItemsSource = dc;
            this.DataContext = new ViewModel();
            

        }

        private void AddEvent_Click(object sender, RoutedEventArgs e)
        {
            AddEvent AddWin = new AddEvent();
            AddWin.Show();
        }

        private void SettingsEdit_Click(object sender, RoutedEventArgs e)
        {
            SettingsEdit SettingsWin = new SettingsEdit();
            SettingsWin.Show();
        }

        private void RibbonButton_Click(object sender, RoutedEventArgs e)
        {
            
            ColumnsDispleyIndex ColumnsWin = new ColumnsDispleyIndex();
            ColumnsWin.SetParent(this);
            ColumnsWin.Show();
        }


    }

   
}
